<?php if (!defined('THINK_PATH')) exit();?>

<form class="form-horizontal" method="post" action="/index.php/Matrix/Order/batch_summary_list" name="basic_validate" id="basic_validate" novalidate="novalidate">
	
<table class="table table-bordered table-striped with-check">
	<thead>
		<tr>
			<th><input type="checkbox" id="title-table-checkbox"
				name="title-table-checkbox" /></th>
			<th width="30px">序号</th>
			<th>收货地址</th>
			<th>联系电话</th>
			<th>收件人姓名</th>
			<th>数量(/箱)</th>
			<th>总价</th>
			<th>运费</th>
			<th>附加费用</th>
			<th>快递单号</th>
			<th>下单时间</th>
			<th>发货时间</th>
			<th width="120px">操作</th>
		</tr>
	</thead>
	
	<tbody>
		<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><tr>
			<td><input type="checkbox" name=checkboxes[] value=<?php echo ($v["order_id"]); ?> /></td>
			<td>
				<div class="numerical"><?php echo ($key+1); ?></div>
			</td>
			<td><?php echo ($v["order_adress"]); ?></td>
			<td><?php echo ($v["phone"]); ?></td>
			<td><?php echo ($v["consignee"]); ?></td>
			<td><?php echo ($v["num"]); ?></td>
			<td><?php echo ($v["total_price"]); ?></td>
			<td><?php echo ($v["carriage"]); ?></td>
			<td><?php echo ($v["other_fee"]); ?></td>
			<td><?php echo ($v["express_num"]); ?></td>
			<td><?php echo (date("Y-m-d H:i:s",$v["created"])); ?></td>
			<td><?php echo (date("Y-m-d H:i:s",$v["send_time"])); ?></td>
			<td class="center">
			 	<a class="btn btn-success" href="/index.php/Matrix/Order/bean?id=<?php echo ($v["order_id"]); ?>" form-type='content' >详情</a>
			 	<a class="btn btn-primary" href="/index.php/Matrix/Order/edit?id=<?php echo ($v["order_id"]); ?>" form-type='content' >修改</a>
			</td>
		</tr><?php endforeach; endif; else: echo "" ;endif; ?>
		<tr>
					<th colspan="6"style="color:green;font-size:20px;">所有页面总价和运费合计:</th>
					<th style="color:green;font-size:20px;" ><?php echo ($total_price); ?></th>
					<th style="color:green;font-size:20px;" ><?php echo ($carriage); ?></th>
					<th style="color:green;font-size:20px;" ><?php echo ($other_fee); ?></th>
					<th colspan="5">/</th>
				</tr>
		
	</tbody>
</table>

<div id="myAlert-bean" class="modal hide" aria-hidden="true"
	style="display: none;">
	<div class="modal-header">
		<button data-dismiss="modal" class="close" type="button">×</button>
		<h3>删除</h3>
	</div>
	<div class="modal-body">
		<p>内容删除之后将不能够恢复，确定要做删除吗？</p>
	</div>
	<div class="modal-footer">
		<a data-dismiss="modal" class="btn btn-primary data-del-bean-alert"
			href="/index.php/Matrix/Order/foreverdelete">确定</a> <a data-dismiss="modal"
			class="btn" href="#">取消</a>
	</div>
</div>

</form>

<!-- page --> <div class="fg-toolbar ui-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix">
	<div class="" style="float: left;" id="page-left-info">
		<div>当前第 <?php echo ($currentPage); ?> 页/ 共 <?php echo ($totalCount); ?> 条 / 共 <?php echo ($totalPage); ?> 页 跳转到 &nbsp;</div>
		<div>
			<input type="text" class="span2" id ="yun_page_skip_input" value="<?php echo ($currentPage); ?>">
		</div>
		<div><a href='<?php echo ($goPage); ?>&between_time_start=<?php echo ($between_time_start); ?>&between_time_end=<?php echo ($between_time_end); ?>' id = "yun_page_skip" sytle="font-size: 20px;" form-type="page-table"><i class="icon-circle-arrow-right"></i></a></div>
	</div>
	<div class="dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_full_numbers" id="DataTables_Table_0_paginate">
		<?php echo ($page); ?>
	</div>
</div>